package top.lyooo.mybatislite.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import top.lyooo.mybatislite.bean.SqlStatement;

import java.util.List;
import java.util.Map;

/**
 * @author :LiYu
 * @date :2020-08-25 22:07
 * @desc :
 * @return :
 */

public interface BaseMapper<T>{
    @Select("${sql}")
    List<Map> selectObj(SqlStatement sqlStatement);
    @Insert("${sql}")
    int insertObj(SqlStatement sqlStatement);
    @Update("${sql}")
    int updateObj(SqlStatement sqlStatement);
    @Delete("${sql}")
    int deleteObj(SqlStatement sqlStatement);
    @Select("${sql}")
    List<T> selectBean(SqlStatement sqlStatement);

}
